package com.ruoyi.ldzlsb.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备管理对象 sb_equipment
 * 
 * @author ruoyi
 */
public class SbEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long equipmentId;
    
    /** ID */
    private Long id;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String equipmentCode;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    /** 设备类型ID */
    @Excel(name = "设备类型ID")
    private Long typeId;
    
    /** 设备类型名称 */
    @Excel(name = "设备类型名称")
    private String equipmentTypeName;
    
    /** 产品型号/规格 */
    @Excel(name = "产品型号/规格")
    private String specifications;
    
    /** 产品SN */
    @Excel(name = "产品SN")
    private String productSfn;
    
    /** 制造商 */
    @Excel(name = "制造商")
    private String manufacturer;
    
    /** 供应商编码 */
    private String supplierCode;
    
    /** 供应商名称 */
    @Excel(name = "供应商")
    private String supplierName;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String location;
    
    /** 管理人 */
    @Excel(name = "管理人")
    private String manager;
    
    /** 管理人昵称 */
    private String managerNickName;
    
    /** 车间 */
    @Excel(name = "车间")
    private String workshop;
    
    /** 车间ID */
    private Long workshopId;
    
    /** 车间名称 */
    private String workshopName;
    
    /** 生产线 */
    @Excel(name = "生产线")
    private String productionLine;
    
    /** 生产线ID */
    private Long productionLineId;
    
    /** 生产线名称 */
    private String productionLineName;

    /** 设备状态 */
    @Excel(name = "设备状态", readConverterExp = "0=空闲,1=在用,2=维修中,3=报废")
    private String equipmentStatus;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;
    
    /** 安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installDate;
    
    /** 调试日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调试日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commissioningDate;

    /** 保修期限（月） */
    @Excel(name = "保修期限(月)")
    private Integer warrantyPeriod;
    
    /** 保修到期日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保修到期日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warrantyEndDate;

    /** 采购价格 */
    @Excel(name = "采购价格")
    private BigDecimal purchasePrice;
    
    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNumber;
    
    /** 额定功率 */
    private String ratedPower;
    
    /** 额定电压 */
    private String ratedVoltage;
    
    /** 重量 */
    private BigDecimal weight;
    
    /** 尺寸 */
    private String dimensions;

    /** 设备图片 */
    private byte[] img;
    
    /** 图片URL */
    private String imageUrl;
    
    /** 技术文档 */
    private String technicalDocs;
    
    /** 维护手册 */
    private String maintenanceManual;
    
    /** 责任人 */
    private String responsiblePerson;
    
    /** 用户ID */
    private Long userId;
    
    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;
    
    /** 保养周期(天) */
    @Excel(name = "保养周期(天)")
    private Integer maintenanceCycle;
    
    /** 部门名称 */
    @Excel(name = "部门名称")
    private String departmentName;
    
    /** 部门ID */
    private Long departmentId;
    
    /** 设备型号 */
    @Excel(name = "设备型号")
    private String model;
    
    /** 是否删除(0未删除 1已删除) */
    private String isDelete;

    /** 设备类型ID */
    private Long equipmentTypeId;

    public Long getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Long equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    
    public String getEquipmentCode() {
        return equipmentCode;
    }
    
    public void setEquipmentCode(String equipmentCode) {
        this.equipmentCode = equipmentCode;
    }
    
    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getEquipmentTypeName() {
        return equipmentTypeName;
    }

    public void setEquipmentTypeName(String equipmentTypeName) {
        this.equipmentTypeName = equipmentTypeName;
    }
    
    public String getSpecifications() {
        return specifications;
    }
    
    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }
    
    public String getProductSfn() {
        return productSfn;
    }
    
    public void setProductSfn(String productSfn) {
        this.productSfn = productSfn;
    }
    
    public String getManufacturer() {
        return manufacturer;
    }
    
    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }
    
    public String getSupplierCode() {
        return supplierCode;
    }
    
    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }
    
    public String getSupplierName() {
        return supplierName;
    }
    
    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }
    
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }
    
    public String getManagerNickName() {
        return managerNickName;
    }
    
    public void setManagerNickName(String managerNickName) {
        this.managerNickName = managerNickName;
    }
    
    public String getWorkshop() {
        return workshop;
    }
    
    public void setWorkshop(String workshop) {
        this.workshop = workshop;
    }
    
    public Long getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Long workshopId) {
        this.workshopId = workshopId;
    }

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }
    
    public String getProductionLine() {
        return productionLine;
    }
    
    public void setProductionLine(String productionLine) {
        this.productionLine = productionLine;
    }
    
    public Long getProductionLineId() {
        return productionLineId;
    }

    public void setProductionLineId(Long productionLineId) {
        this.productionLineId = productionLineId;
    }

    public String getProductionLineName() {
        return productionLineName;
    }

    public void setProductionLineName(String productionLineName) {
        this.productionLineName = productionLineName;
    }
    
    public String getEquipmentStatus() {
        return equipmentStatus;
    }

    public void setEquipmentStatus(String equipmentStatus) {
        this.equipmentStatus = equipmentStatus;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public Date getInstallDate() {
        return installDate;
    }
    
    public void setInstallDate(Date installDate) {
        this.installDate = installDate;
    }
    
    public Date getCommissioningDate() {
        return commissioningDate;
    }
    
    public void setCommissioningDate(Date commissioningDate) {
        this.commissioningDate = commissioningDate;
    }
    
    public Integer getWarrantyPeriod() {
        return warrantyPeriod;
    }

    public void setWarrantyPeriod(Integer warrantyPeriod) {
        this.warrantyPeriod = warrantyPeriod;
    }

    public Date getWarrantyEndDate() {
        return warrantyEndDate;
    }

    public void setWarrantyEndDate(Date warrantyEndDate) {
        this.warrantyEndDate = warrantyEndDate;
    }
    
    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }
    
    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }
    
    public String getSerialNumber() {
        return serialNumber;
    }
    
    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }
    
    public String getRatedPower() {
        return ratedPower;
    }
    
    public void setRatedPower(String ratedPower) {
        this.ratedPower = ratedPower;
    }
    
    public String getRatedVoltage() {
        return ratedVoltage;
    }
    
    public void setRatedVoltage(String ratedVoltage) {
        this.ratedVoltage = ratedVoltage;
    }
    
    public BigDecimal getWeight() {
        return weight;
    }
    
    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }
    
    public String getDimensions() {
        return dimensions;
    }
    
    public void setDimensions(String dimensions) {
        this.dimensions = dimensions;
    }
    
    public byte[] getImg() {
        return img;
    }
    
    public void setImg(byte[] img) {
        this.img = img;
    }
    
    public String getImageUrl() {
        return imageUrl;
    }
    
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    
    public String getTechnicalDocs() {
        return technicalDocs;
    }
    
    public void setTechnicalDocs(String technicalDocs) {
        this.technicalDocs = technicalDocs;
    }

    public String getMaintenanceManual() {
        return maintenanceManual;
    }
    
    public void setMaintenanceManual(String maintenanceManual) {
        this.maintenanceManual = maintenanceManual;
    }
    
    public String getResponsiblePerson() {
        return responsiblePerson;
    }
    
    public void setResponsiblePerson(String responsiblePerson) {
        this.responsiblePerson = responsiblePerson;
    }
    
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public String getContactPhone() {
        return contactPhone;
    }
    
    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }
    
    public Integer getMaintenanceCycle() {
        return maintenanceCycle;
    }
    
    public void setMaintenanceCycle(Integer maintenanceCycle) {
        this.maintenanceCycle = maintenanceCycle;
    }
    
    public String getDepartmentName() {
        return departmentName;
    }
    
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }
    
    public Long getDepartmentId() {
        return departmentId;
    }
    
    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }
    
    public String getModel() {
        return model;
    }
    
    public void setModel(String model) {
        this.model = model;
    }
    
    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public Long getEquipmentTypeId() {
        return equipmentTypeId;
    }

    public void setEquipmentTypeId(Long equipmentTypeId) {
        this.equipmentTypeId = equipmentTypeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("equipmentId", getEquipmentId())
            .append("id", getId())
            .append("equipmentCode", getEquipmentCode())
            .append("equipmentName", getEquipmentName())
            .append("typeId", getTypeId())
            .append("equipmentTypeName", getEquipmentTypeName())
            .append("specifications", getSpecifications())
            .append("productSfn", getProductSfn())
            .append("manufacturer", getManufacturer())
            .append("supplierCode", getSupplierCode())
            .append("supplierName", getSupplierName())
            .append("location", getLocation())
            .append("manager", getManager())
            .append("managerNickName", getManagerNickName())
            .append("workshop", getWorkshop())
            .append("workshopId", getWorkshopId())
            .append("workshopName", getWorkshopName())
            .append("productionLine", getProductionLine())
            .append("productionLineId", getProductionLineId())
            .append("productionLineName", getProductionLineName())
            .append("equipmentStatus", getEquipmentStatus())
            .append("purchaseDate", getPurchaseDate())
            .append("installDate", getInstallDate())
            .append("commissioningDate", getCommissioningDate())
            .append("warrantyPeriod", getWarrantyPeriod())
            .append("warrantyEndDate", getWarrantyEndDate())
            .append("purchasePrice", getPurchasePrice())
            .append("serialNumber", getSerialNumber())
            .append("ratedPower", getRatedPower())
            .append("ratedVoltage", getRatedVoltage())
            .append("weight", getWeight())
            .append("dimensions", getDimensions())
            .append("technicalDocs", getTechnicalDocs())
            .append("maintenanceManual", getMaintenanceManual())
            .append("responsiblePerson", getResponsiblePerson())
            .append("userId", getUserId())
            .append("contactPhone", getContactPhone())
            .append("maintenanceCycle", getMaintenanceCycle())
            .append("departmentName", getDepartmentName())
            .append("departmentId", getDepartmentId())
            .append("model", getModel())
            .append("specifications", getSpecifications())
            .append("isDelete", getIsDelete())
                .append("equipmentTypeId", getEquipmentTypeId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
